import { commonRequest } from '@/api/commonHttp';

// 商品基础 - 品牌管理 - 品牌待审核 - 获取详情
export const getBrandAuditInfoService = (data, target) => commonRequest({
  url: '/sysback/productbrand/productbrandaudit/getBrandAuditInfo',
  type: 'get',
  data,
  target,
});

// 商品基础 - 品牌管理 - 品牌待审核 - 审核不通过
export const auditNoPassService = (data, loadingFn) => commonRequest({
  url: `/sysback/productbrand/productbrandaudit/auditNoPass?uuids=${data.uuids}&auditNote=${data.auditNote}`,
  type: 'post',
  data,
  loadingFn,
});

// 商品基础 - 品牌管理 - 品牌待审核 - 审核通过
export const auditPassService = (data, loadingFn) => commonRequest({
  url: `/sysback/productbrand/productbrandaudit/auditPass?uuids=${data.uuids}&auditNote=${data.auditNote}`,
  type: 'post',
  data,
  loadingFn,
});
